# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Konstantin Gizdov <arch@kge.pw>
# Contributor: Alad Wenter <alad@mailbox.org>
# Contributor: Thorsten Töpper <atsutane-tu@freethoughts.de>

pkgname=libclastfm
pkgver=0.5
pkgrel=7
pkgdesc='Unofficial C-API for the Last.fm web service'
arch=('loong64' 'x86_64')
url='http://liblastfm.sourceforge.net/'
license=('GPL3')
depends=('curl')
source=("https://downloads.sourceforge.net/liblastfm/$pkgname-$pkgver.tar.gz")
sha256sums=('c9aa7817b557f8d8ef834755740fc813f9351f3185b5bdf4de249bee3675ee42')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
